function FindProxyForURL(url, host) {

var D = "DIRECT";
var p='HTTPS taobaoy.xyz:443';

if (shExpMatch(host, '10.[0-9]+.[0-9]+.[0-9]+')) return D;
if (shExpMatch(host, '172.[0-9]+.[0-9]+.[0-9]+')) return D;
if (shExpMatch(host, '192.168.[0-9]+.[0-9]+')) return D;
if (url.indexOf('glbproxy.online') >-1 )
 return p;
if (url.indexOf('http://www.google.com/complete/search?client=chrome-omni') == 0)
 return D;
if (url.indexOf('.iilove.info') > 0)
 return D;
if (url.indexOf('itudou.') > -1)
 return D;
if (url.indexOf('http://clients1.google.com/generate_204') == 0)
 return D;
if (url.indexOf('http://chart.apis.google.com/') == 0)
 return D;
if (url.indexOf('http://toolbarqueries.google.com') == 0)
 return D;

var i = url.indexOf('_HXPROXY=');
if (i >= 0) return url.substr(i+9).replace('+', ' ');

if (dnsDomainIs(host, '0.0.0.0')) return D;
if (dnsDomainIs(host, '127.0.0.1')) return D;
if (dnsDomainIs(host, 'localStorage')) return D;
if (dnsDomainIs(host, 'https://ec8.iilove.info')) return D;


var node = {"146":{"127":{"228":{"147":1}}},"163":{"49":{"88":{"47":1}}},"189":{"15":{"3":{"10":1}}},"jp":{"co":{"334":1,"google":1,"yahoo":1,"hankyu-dept":1,"mizuhobank":1,"cybird":1,"tokyuhotels":1,"tenyo":1,"amazon":1,"gochipon":1,"midori-japan":1,"cybrid":1,"yokumoku":1,"nikkeibp":{"stats":1},"tbs":{"scis":1},"ministop":1},"aktsk":1,"fout":{"cnt":1},"makeshop":1,"livedoor":1,"mixi":1,"blogimg":1,"sbbit":1,"xsrv":1,"blog":1,"giocox":1,"gamemarket":1,"kyoto-denim":1,"gcpn":1,"lusaku":1,"blogspot":1,"hatenablog":1,"ne":{"hatena":1},"ac":{"tohoku":1},"hateblo":1,"tsite":1,"sega":1,"nakanohito":1,"prcm":{"pics":1},"etf-gateway":1,"appmedia":1,"or":1,"pinterest":1},"kr":{"co":{"google":1}},"id":{"co":{"google":1}},"vn":{"com":{"google":1,"ved":1}},"net":{"akamaihd":1,"facebook":1,"fbcdn":1,"cloudfront":1,"sstatic":1,"doubleclick":1,"2mdn":1,"akamai":1,"aaa-japan":1,"pixnet":1,"edgesuite":1,"m78-online":1,"heroyuuki":1,"omtrdc":1,"daringfireball":1,"slideshare":1,"deeplearning":1,"starlakeporch":1,"xuite":1,"entertainment14":1,"dmcdn":1,"mobatek":1,"wailaike":1,"houganshi":1,"nintendo":1,"jsdelivr":1,"crwdcntrl":1,"2o7":1,"chartbeat":1,"template":1,"itindex":1,"sourceforge":1,"ero-video":1,"azurewebsites":1,"lod-cloud":1,"edgefcs":1,"iflychina":1,"pixfs":{"s":1,"libs":1},"krxd":{"jslog":1},"freehostedscripts":1,"projecteuler":1,"quoracdn":1,"im-apps":{"atm":1},"medcl":1,"mozilla":1,"creaders":1,"xn--h-k9tybb8g5ivhkczry701afhpm4sru6d":1,"vpnxx":1,"speedyrails":1,"typekit":1,"wistia":1,"jsfiddle":1,"12factor":1,"letscorp":1,"mybluemix":1,"oloadcdn":1,"dopr":1,"monst-news":1,"playercdn":1,"nr-data":1,"codemirror":1,"inmediahk":1,"komison":1,"chinadigitaltimes":1,"pao-pao":1},"com":{"facebook":1,"twitter":1,"twimg":1,"google":1,"googleusercontent":1,"googleapis":1,"gstatic":1,"gmail":1,"tumblr":1,"appspot":1,"amazonaws":1,"blogspot":1,"blogger":1,"mediafire":1,"ytimg":1,"youtube":1,"googlevideo":1,"youtube-nocookie":1,"wordpress":1,"vimeo":1,"googlesyndication":1,"ggpht":1,"imgur":1,"googleadservices":1,"cloudflare":1,"nordstrom":1,"nordstromimage":1,"addthis":1,"statcounter":1,"tasaki-global":1,"aqtracker":1,"bootstrapcdn":1,"line-apps":1,"garena":1,"googleblog":1,"asciiflow":1,"mailchimp":1,"kayac":1,"livedoor":1,"github":1,"android":1,"duanzhihu":1,"fc2":1,"apple":{"metrics":1},"scorecardresearch":1,"parsely":1,"nextmedia":1,"medium":1,"blogblog":1,"dropbox":1,"dropboxusercontent":1,"instagram":1,"cnepub":1,"nytimes":1,"monetizejs":1,"nvidia":{"images-stage":1},"pricespider":1,"redirectingat":1,"websequencediagrams":1,"thisav":1,"histats":1,"jwpltx":1,"wpjam":1,"safaribooksonline":1,"jiathis":1,"sublimetext":1,"flickr":1,"webtype":1,"macrumors":1,"githubusercontent":1,"packtpub":1,"forbeschina":1,"bbc":1,"cdninstagram":1,"hotnewsnet":1,"intentarget":1,"w3schools":1,"unanalytics":1,"nextbesttarget":1,"togetter":1,"kurtosys":1,"tokyodev":1,"qiita":1,"oreilly":1,"aboluowang":1,"teasoku":1,"disqus":1,"52opencourse":1,"bloomberg":1,"mashape":1,"googlechinablog":1,"plurk":1,"dailymotion":1,"jeffknupp":1,"realpython":1,"wenxuecity":1,"farmdev":1,"oracle":1,"pythonscraping":1,"mackeeper":1,"atlassian":1,"ninjai":1,"isitchristmas":1,"googlelabs":1,"skimresources":1,"redditstatic":1,"redditmedia":1,"reddit":1,"maison-kyoto":1,"roodo":1,"stormzhang":1,"linode":1,"pdffiller":1,"adobe":1,"dochub":1,"luminpdf":1,"squarespace":1,"useso":1,"analysis-lykaon":1,"lithium":1,"donews":1,"codecogs":1,"docker":1,"gumroad":1,"netdna-cdn":1,"bixly":1,"nebrios":1,"dabeaz":1,"wp":1,"mindvectorweb":1,"startbootstrap":1,"free-css":1,"digitalocean":1,"shutterstock":1,"pixlr":1,"prottapp":1,"axure":1,"queryly":{"data":1},"simplereach":1,"playpcesor":1,"aixifan":1,"ssl-images-amazon":1,"theverge":1,"bootcss":1,"yahoo":1,"yimg":1,"":1,"stackoverflow":1,"hatenablog":1,"onlamp":1,"mitbbs":1,"warcraftmovies":1,"gitbook":1,"amassly":1,"trellocdn":1,"trello":1,"quantcount":1,"googlecode":1,"staticflickr":1,"screencast":1,"infoq":1,"neo4jsandbox":1,"onclkds":1,"prezi":1,"hotjar":1,"brainyquote":1,"hp":1,"brightcove":1,"lisezdb":1,"imgbox":1,"yyuap":1,"focuzine":1,"bluekai":1,"stackpathdns":1,"imrworldwide":1,"pixanalytics":1,"dtscout":1,"hongkongdisneyland":1,"stumbleupon":1,"amazon":1,"time":1,"timeinc":1,"vpnbestforchina":1,"optimizely":1,"st-hatena":{"f":{"cdn-ak":1}},"blogmura":1,"umblr":1,"weheartit":1,"whicdn":1,"chanelprices":1,"eaqule":1,"machinelearningmastery":1,"marketo":{"sjrtp2":1},"visistat":1,"captora":1,"sharethis":1,"amazon-adsystem":1,"google-analytics":1,"kxcdn":1,"quantserve":1,"crsspxl":1,"dzone":1,"inventwithpython":1,"obeythetestinggoat":1,"linkedin":1,"simply-python":1,"guava-juice":1,"weiheart":1,"backchina":1,"lvv2":1,"githubapp":1,"live":1,"goodreads":1,"gazou-zu":1,"erogazoufactory":1,"adnxs":1,"economist":1,"laioffer":1,"neo4j":1,"canvaslms":1,"instructure":1,"findbestopensource":1,"stephenou":1,"jquery":1,"akbaribrahim":1,"storify":1,"livefyre":1,"postgresapp":1,"issuu":1,"bigmining":1,"idcfcloud":1,"hashicorp":1,"vagrantup":1,"ckeditor":1,"seagroup":1,"marvelapp":1,"box":1,"invisionapp":1,"iconfinder":1,"zendesk":1,"invisionapp-cdn":1,"epochtimes":1,"moqups":1,"sitepoint":1,"gomockingbird":1,"investopedia":1,"wsj":1,"elitetrader":1,"tradestation":1,"vimeocdn":1,"uefa":1,"djangoproject":1,"alexgorbatchev":1,"flyvpn":1,"pexels":1,"pinimg":1,"pinterest":1,"builtwithbootstrap":1,"cleancss":1,"freeformatter":1,"yiiframework":1,"togetherjs":1,"appannie":1,"microsoft":1,"macobserver":1,"fullstackreact":1,"stackexchange":1,"elle":1,"jsbin":1,"upwork":1,"keycdn":1,"premierleague":1,"addthisedge":1,"gravatar":1,"html5rocks":1,"semantic-ui":1,"reuters":1,"netflix":1,"unpkg":1,"mktoresp":1,"cxense":{"comcluster":1},"zhihu":1,"slidescarnival":1,"triplebytes":1,"licdn":1,"codeinthedark":1,"ibm":1,"explainshell":1,"10tiao":1,"slideye":1,"odoocdn":1,"speakerdeck":1,"aspnetcdn":1,"optnmnstr":1,"flyboards-uae":1,"atdmt":1,"tripadvisor":1,"timeanddate":1,"newrelic":1,"uplabs":1,"materialup":1,"semantic-ui-forest":1,"rawgit":1,"iterable":1,"ferrariworldabudhabi":1,"voicefive":1,"zenmate":1,"fangpenlin":1,"regex101":1,"pcworld":1,"revcontent":1,"muimg":1,"exosrv":1,"javhd":1,"huang-jerryc":1,"agkn":1,"wikia":1,"wikia-beacon":1,"cloudexbox":1,"raywenderlich":1,"shuxuele":1,"darwinmarketing":1,"empireflippers":1,"phonewagon":1,"blissfully":1,"salesforce":1,"netbig":1,"firebaseio":1,"amplitude":1,"crazyegg":1,"uservoice":1,"fullstory":1,"mucahitgayiran":1,"udn":1,"mathsisfun":1,"iamtxt":1,"codecademy":1,"typography":1,"sarattosokuhou":1,"walkerplus":1,"leetcode":1,"tenyi":1,"ftchinese":1,"lsj73":1,"lsjmail":1,"91porn":1,"coursehero":1,"rome2rio":1,"adventureemirates":1,"ericholscher":1,"careem":1,"dubai-buses":1,"wattpad":1,"fbsbx":1,"chrome":1,"tutsplus":1,"arilacenski":1,"nssurge":1,"quora":1,"transferwise":1,"dockertrial":1,"accountkit":1,"ntdtv":1,"buzzorange":1,"drewconway":1},"co":{"t":1,"leadpages":1,"elastic":1,"cdrf":1,"vmus":1,"playappgame":1,"keywee":1,"t6k":1,"2scoops":1},"hk":{"com":{"google":1},"blogspot":1},"ly":{"bit":1,"ow":1},"be":{"youtu":1},"org":{"wikipedia":1,"jiacheo":1,"getlantern":1,"mathjax":1,"plantvillage":1,"tensorflow":1,"python-guide":1,"scrapy":1,"creativecommons":1,"xys":1,"pythonpaste":1,"readthedocs":1,"cheetahtemplate":1,"shuge-lab":1,"python":1,"json":1,"projectrhea":1,"pythonlibrary":1,"pythonclub":1,"arxiv":1,"wikimedia":1,"nlpcn":1,"nlp-class":1,"dbpedia":1,"purl":1,"icij":1,"scikit-learn":1,"pluskid":1,"pytest":1,"pyweek":1,"mozilla":1,"seleniumhq":1,"fabfile":1,"molihua":1,"worldcat":1,"shadowsocks":1,"elmsln":1,"moodle":1,"drupal":1,"djangogirls":1,"himsslearn":1,"discourse":1,"autonlab":1,"archive":1,"k-lug":1,"hxwk":1,"ocks":1,"code":1,"graphene-python":1,"django-rest-framework":1,"telegram":1,"aclweb":1},"io":{"github":1,"stackedit":1,"cyberduck":1,"packagecontrol":1,"keras":1,"gitbooks":1,"unigraph":1,"narrative":1,"bittiger":1,"draw":1,"angular":1,"egghead":1,"codementor":1,"atom":1,"sentry":1,"expo":1,"mathcha":1,"stackshare":1,"segment":1,"intercom":1,"c9":1,"readthedocs":1},"sg":{"com":{"google":1,"zaobao":1},"garena":1,"engineers":1},"me":{"line":1,"fens":1,"thecodingbox":1,"yuml":1,"fb":1,"bunkr":1,"scomper":1,"telegram":1},"us":{"r2d3":1,"movies99":1,"linkurio":1,"amung":1},"tw":{"com":{"appledaily":1,"bahamut":1,"gamer":1,"longwin":1,"ltn":1,"google":1},"garena":1,"edu":{"npm":1},"olgame":1},"uk":{"co":{"macworld":1,"blogspot":1,"bedford-computing":1,"ccbv":1}},"newtab":1,"mk":{"blogspot":1},"blog":{"binux":1},"br":{"pro":{"python":1}},"cn":{"coolshell":1,"52nlp":1,"com":{"sciencetimes":1,"hoopchina":1},"gov":{"shenyang":1},"lahuu":1,"gamelearner":1,"sinajs":1,"letv":1},"edu":{"stanford":1,"columbia":1,"nyu":1,"wisc":1},"gl":{"goo":1},"cc":{"ptt":1,"on":1,"wireframe":1,"pixnet":1},"cx":{"c3":1},"biz":{"cyberciti":1},"im":{"gitter":1,"wzyboy":1},"nz":{"mega":1},"asia":{"pansci":1},"info":{"ykyuen":1,"chuci":1,"fileformat":1,"wowstatus":1},"no":{"blogspot":1},"ca":{"atlee":1},"to":{"asg":1},"it":{"unitn":1,"lodlive":1},"in":{"pixplug":1},"mg":{"storm":1},"online":{"glbproxy":1},"nl":{"blogspot":1},"fi":{"simpli":1},"city":{"1984":1},"tv":{"garss":1},"pl":{"carrots":1},"design":{"origami":1},"fr":{"rfi":1},"site":{"stormss":1},"au":{"com":{"maxdesign":1}},"cloud":{"paw":1},"ae":{"skydivedubai":1,"atthetop":1,"abudhabi":1,"dubaitaxi":1,"rta":1},"zone":{"mockup":1},"is":{"time":1},"pe":{"telesco":1},"ai":{"api":1},"my":{"com":{"chinapress":1}},"pw":{"hidog":1},"top":{"check-version":1}};
var hostParts = host.toLowerCase().split('.');
for (var i=hostParts.length - 1; i >= 0; i --) {
    var part = hostParts[i];
    node = node[part];
    if (node == undefined || node == 1) break;
}
if (node == 1)
    return p;

return D;
}